const dynamicRoutes = [
  {
    path: "/",
    component: () => import(/*webpackChunkName:"home"*/ "../pages/Home"),
    redirect: "/welcome",
    children: [
      {
        path: "vipmanager",
        component: () =>
          import(/*webpackChunkName:"vipmanager" */ "../pages/Home/VipManager"),
        name: "vipmanager",
        meta: {
          //储存一些属性
          fullPath: "/vipmanager",
          icon: "iconfont icon-VIP",
          name: "vip充值管理",
        },
        children: [
          {
            path: "charge",
            component: () =>
              import(
                /*webpackChunkName:"charge" */ "../pages/Home/VipManager/Charge"
              ),
            name: "charge",
            meta: {
              //储存一些属性
              fullPath: "/vipmanager/charge",
              icon: "iconfont  icon-zhanghaoxinxi",
              name: "vip充值",
            },
          },

          {
            path: "order",
            component: () =>
              import(
                /*webpackChunkName:"order" */ "../pages/Home/VipManager/Order"
              ),
            name: "order",
            meta: {
              //储存一些属性
              fullPath: "/vipmanager/order",
              icon: "iconfont  icon-wenzhanghuoke-",
              name: "订单管理",
            },
          },
        ],
      },
      // -------------------------
      {
        path: "pre_order",
        component: () =>
          import(/*webpackChunkName:"preOrder"*/ "../pages/Home/PreOrder"),
        name: "pre_order",
        meta: {
          name: "预支付",
        },
      },
    ],
  },
  {
    path: "*",
    component: () => import(/*webpackChunkName:"page404"*/ "../pages/Page404"),
  },
];

export default dynamicRoutes;
